package com.sys.basics.dao;

import org.apache.ibatis.annotations.Mapper;
import com.sys.basics.entity.SysArea;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * @author: ares
 * @date: 2021-10-08
 * @description: 行政区域表 Mapper 接口
 */
@Mapper
public interface SysAreaDao extends BaseMapper<SysArea> {

    SysArea getByCode(String areaCode);

    SysArea getTreeByCode(String areaCode);

    List<SysArea> getChildrenByParentCode(String parentCode);

    List<SysArea> getChildrenTreeByParentCode(String parentCode);

    Boolean removeByCode(String areaCode);

}
